package com.ama.dao;



import com.ama.pojo.Company;
import com.ama.pojo.Employee;
import com.ama.pojo.Person;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeDao extends BaseMapper<Employee> {
	public void save(@Param("p_id") long p_id,@Param("c_id") long c_id);
	public Employee findEmployeeByIds(@Param("p_id") long p_id, @Param("c_id") long c_id);
	public List<Person> findPersonsByCompanyId(long c_id);
	public List<Company> findCompanysByPersonId(long p_id);
	public void updateisAgreed(@Param("isAgreed") long isAgreed,@Param("id") long id);
}
